<!DOCTYPE HTML>
<html>
<head>
    <include file="Public/head" />
<title>计划入库单详情</title>
</head>
<style>
	table{
		width:991px;height:528px;
	}
	.table-border th, .table-border td{
		border:0px;
	}
	td{width:50px;height:49px;overflow:hidden;word-spacing:nowrap;padding:0 3px;border-top:1px solid #000 !important;border-left:1px solid #000 !important;}
	table{
		table-layout:fixed;
		border:0 !important;
	}
	tr{
		border:0 !important;
	}
	
	.border0{
		border-top:0 !important;
		border-right:0 !important;
		border-left:0 !important;
	}
	.border1{
		border-right:1px solid #000 !important
	}
	.border2{
		border-bottom:1px solid #000 !important
	}
	.border-top{
		border-top:0 !important;
	}
	.border-right{
		border-right:0 !important;
	}
	.border-bottom{
		border-bottom:0 !important;
	}
	.border-left{
		border-left:0 !important;
	}
	.bold{
		font-weight:bold;
	}
	@media print {
		.noprint { display: none; }
		#emstable {page-break-after:always;}
		td{
			border-top:0px solid #000 !important;border-left:0px solid #000 !important;
		}
		.border1{
			border-right:0px solid #000 !important
		}
		.border2{
			border-bottom:0px solid #000 !important
		}
		.select{
			border:0px;
		}
		.DivSelect
		{
			position: relative;
			background-color: transparent;
			width:  110px;
			height: 20px;
			overflow: hidden; /*隐藏了小三角，因为宽度为110px,而select宽度为130px*/
		}
	}
</style>
<body>
<div class="pd-20">

	<table class=" table-border table-bordered table-hover " style="border-top:0;">
		<thead  class="border0">
			<tr  class="border0">
				<td scope="col" colspan="7"  class="border0" style='text-align:center;font-size:16px;font-weight:bold;border:0'>生产任务申请单</td>
			</tr>
			<tr class="">
				<td class="border0"></td>
				<td class="border0"></td>
				<td class="border0"></td>
				<td class="border0">打印日期:</td>
				<td class="border0"></td>
				<td class="border0">打印页数:</td>
				<td class="border0">1/1</td>
			</tr>
		</thead>
		<tbody>
			<tr class="text-c">
				<td class="bold">单据编号</td>
				<td colspan="2"></td>
				<td class="bold">单据日期</td>
				<td colspan="3"  class="border1">{$detail.add_time|date="Y-m-d",###}</td>
			</tr>
			<tr class="text-c">
				<td class="bold">需求部门</td>
				<td colspan="2"></td>
				<td class="bold">申请人</td>
				<td colspan="3"  class="border1"></td>
			</tr>
			<tr class="text-c">
				<td class="bold">生产周期要求</td>
				<td colspan="6"  class="border1"></td>
			</tr>
			<tr class="text-c">
				<td class="bold">申请摘要</td>
				<td colspan="6"  class="border1"></td>
			</tr>
			<tr class="text-c">
				<td colspan="7"  class="border1 bold">成品表</td>
			</tr>
			<tr class="text-c">
				<td class="bold">产品编码</td>
				<td class="bold">成品品名</td>
				<td class="bold">规格</td>
				<td class="bold">数量</td>
				<td class="bold">主单位</td>
				<td class="bold">入库仓库</td>
				<td  class="border1 bold">备注</td>
			</tr>
			<volist name="list" id="vo">
			<tr class="">
				<td>{$detail.warehouse_name}</td>
				<td>{$vo.goods_no}</td>
				<td>{$vo.goods_name.goods_name}</td>
				<td>{$vo.batch_no}</td>
				<td>{$vo.unit_name}</td>
				<td>{$vo.goods_nums}</td>
				<td  class="border1">{$vo.goods_price}</td>
			</tr>
			</volist>
			<tr class="text-c">
				<td colspan="7"  class="border1 bold">原辅料表</td>
			</tr>
			<tr class="text-c">
				<td class="bold">产品编码</td>
				<td class="bold">原辅料品名</td>
				<td class="bold">规格</td>
				<td class="bold">数量</td>
				<td class="bold">主单位</td>
				<td class="bold">出货仓库</td>
				<td  class="border1 bold">备注</td>
			</tr>
			<volist name="list" id="vo">
			<tr class="">
				<td>{$detail.warehouse_name}</td>
				<td>{$vo.goods_no}</td>
				<td>{$vo.goods_name.goods_name}</td>
				<td>{$vo.batch_no}</td>
				<td>{$vo.unit_name}</td>
				<td>{$vo.goods_nums}</td>
				<td  class="border1">{$vo.goods_price}</td>
			</tr>
			</volist>
			<tr class="text-c">
				<td class="border2 bold">经办人:</td>
				<td colspan="2" class="border2"></td>
				<td class="border2 bold">有权审批人:</td>
				<td colspan="3" class="border2 border1"></td>
			</tr>
		</tbody>
	</table>
	<button onclick="window.print()"  class="btn btn-primary radius noprint">打印</button>
<div class="pages">
{$page}
</div>
</div>

</body>
</html>